package xian.woniuxy.be.entity;

import java.util.ArrayList;
import java.util.List;

public class ContactpersonExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ContactpersonExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConIdIsNull() {
            addCriterion("con_id is null");
            return (Criteria) this;
        }

        public Criteria andConIdIsNotNull() {
            addCriterion("con_id is not null");
            return (Criteria) this;
        }

        public Criteria andConIdEqualTo(Integer value) {
            addCriterion("con_id =", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdNotEqualTo(Integer value) {
            addCriterion("con_id <>", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdGreaterThan(Integer value) {
            addCriterion("con_id >", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("con_id >=", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdLessThan(Integer value) {
            addCriterion("con_id <", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdLessThanOrEqualTo(Integer value) {
            addCriterion("con_id <=", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdIn(List<Integer> values) {
            addCriterion("con_id in", values, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdNotIn(List<Integer> values) {
            addCriterion("con_id not in", values, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdBetween(Integer value1, Integer value2) {
            addCriterion("con_id between", value1, value2, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdNotBetween(Integer value1, Integer value2) {
            addCriterion("con_id not between", value1, value2, "conId");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNull() {
            addCriterion("cus_id is null");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNotNull() {
            addCriterion("cus_id is not null");
            return (Criteria) this;
        }

        public Criteria andCusIdEqualTo(Integer value) {
            addCriterion("cus_id =", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotEqualTo(Integer value) {
            addCriterion("cus_id <>", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThan(Integer value) {
            addCriterion("cus_id >", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cus_id >=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThan(Integer value) {
            addCriterion("cus_id <", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThanOrEqualTo(Integer value) {
            addCriterion("cus_id <=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdIn(List<Integer> values) {
            addCriterion("cus_id in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotIn(List<Integer> values) {
            addCriterion("cus_id not in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdBetween(Integer value1, Integer value2) {
            addCriterion("cus_id between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cus_id not between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andConNameIsNull() {
            addCriterion("con_name is null");
            return (Criteria) this;
        }

        public Criteria andConNameIsNotNull() {
            addCriterion("con_name is not null");
            return (Criteria) this;
        }

        public Criteria andConNameEqualTo(String value) {
            addCriterion("con_name =", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameNotEqualTo(String value) {
            addCriterion("con_name <>", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameGreaterThan(String value) {
            addCriterion("con_name >", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameGreaterThanOrEqualTo(String value) {
            addCriterion("con_name >=", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameLessThan(String value) {
            addCriterion("con_name <", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameLessThanOrEqualTo(String value) {
            addCriterion("con_name <=", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameLike(String value) {
            addCriterion("con_name like", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameNotLike(String value) {
            addCriterion("con_name not like", value, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameIn(List<String> values) {
            addCriterion("con_name in", values, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameNotIn(List<String> values) {
            addCriterion("con_name not in", values, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameBetween(String value1, String value2) {
            addCriterion("con_name between", value1, value2, "conName");
            return (Criteria) this;
        }

        public Criteria andConNameNotBetween(String value1, String value2) {
            addCriterion("con_name not between", value1, value2, "conName");
            return (Criteria) this;
        }

        public Criteria andConGenderIsNull() {
            addCriterion("con_gender is null");
            return (Criteria) this;
        }

        public Criteria andConGenderIsNotNull() {
            addCriterion("con_gender is not null");
            return (Criteria) this;
        }

        public Criteria andConGenderEqualTo(String value) {
            addCriterion("con_gender =", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderNotEqualTo(String value) {
            addCriterion("con_gender <>", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderGreaterThan(String value) {
            addCriterion("con_gender >", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderGreaterThanOrEqualTo(String value) {
            addCriterion("con_gender >=", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderLessThan(String value) {
            addCriterion("con_gender <", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderLessThanOrEqualTo(String value) {
            addCriterion("con_gender <=", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderLike(String value) {
            addCriterion("con_gender like", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderNotLike(String value) {
            addCriterion("con_gender not like", value, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderIn(List<String> values) {
            addCriterion("con_gender in", values, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderNotIn(List<String> values) {
            addCriterion("con_gender not in", values, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderBetween(String value1, String value2) {
            addCriterion("con_gender between", value1, value2, "conGender");
            return (Criteria) this;
        }

        public Criteria andConGenderNotBetween(String value1, String value2) {
            addCriterion("con_gender not between", value1, value2, "conGender");
            return (Criteria) this;
        }

        public Criteria andConPositionIsNull() {
            addCriterion("con_position is null");
            return (Criteria) this;
        }

        public Criteria andConPositionIsNotNull() {
            addCriterion("con_position is not null");
            return (Criteria) this;
        }

        public Criteria andConPositionEqualTo(String value) {
            addCriterion("con_position =", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionNotEqualTo(String value) {
            addCriterion("con_position <>", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionGreaterThan(String value) {
            addCriterion("con_position >", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionGreaterThanOrEqualTo(String value) {
            addCriterion("con_position >=", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionLessThan(String value) {
            addCriterion("con_position <", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionLessThanOrEqualTo(String value) {
            addCriterion("con_position <=", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionLike(String value) {
            addCriterion("con_position like", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionNotLike(String value) {
            addCriterion("con_position not like", value, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionIn(List<String> values) {
            addCriterion("con_position in", values, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionNotIn(List<String> values) {
            addCriterion("con_position not in", values, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionBetween(String value1, String value2) {
            addCriterion("con_position between", value1, value2, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConPositionNotBetween(String value1, String value2) {
            addCriterion("con_position not between", value1, value2, "conPosition");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneIsNull() {
            addCriterion("con_officephone is null");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneIsNotNull() {
            addCriterion("con_officephone is not null");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneEqualTo(String value) {
            addCriterion("con_officephone =", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneNotEqualTo(String value) {
            addCriterion("con_officephone <>", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneGreaterThan(String value) {
            addCriterion("con_officephone >", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneGreaterThanOrEqualTo(String value) {
            addCriterion("con_officephone >=", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneLessThan(String value) {
            addCriterion("con_officephone <", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneLessThanOrEqualTo(String value) {
            addCriterion("con_officephone <=", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneLike(String value) {
            addCriterion("con_officephone like", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneNotLike(String value) {
            addCriterion("con_officephone not like", value, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneIn(List<String> values) {
            addCriterion("con_officephone in", values, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneNotIn(List<String> values) {
            addCriterion("con_officephone not in", values, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneBetween(String value1, String value2) {
            addCriterion("con_officephone between", value1, value2, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConOfficephoneNotBetween(String value1, String value2) {
            addCriterion("con_officephone not between", value1, value2, "conOfficephone");
            return (Criteria) this;
        }

        public Criteria andConPhoneIsNull() {
            addCriterion("con_phone is null");
            return (Criteria) this;
        }

        public Criteria andConPhoneIsNotNull() {
            addCriterion("con_phone is not null");
            return (Criteria) this;
        }

        public Criteria andConPhoneEqualTo(String value) {
            addCriterion("con_phone =", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneNotEqualTo(String value) {
            addCriterion("con_phone <>", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneGreaterThan(String value) {
            addCriterion("con_phone >", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("con_phone >=", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneLessThan(String value) {
            addCriterion("con_phone <", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneLessThanOrEqualTo(String value) {
            addCriterion("con_phone <=", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneLike(String value) {
            addCriterion("con_phone like", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneNotLike(String value) {
            addCriterion("con_phone not like", value, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneIn(List<String> values) {
            addCriterion("con_phone in", values, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneNotIn(List<String> values) {
            addCriterion("con_phone not in", values, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneBetween(String value1, String value2) {
            addCriterion("con_phone between", value1, value2, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConPhoneNotBetween(String value1, String value2) {
            addCriterion("con_phone not between", value1, value2, "conPhone");
            return (Criteria) this;
        }

        public Criteria andConRemarkIsNull() {
            addCriterion("con_remark is null");
            return (Criteria) this;
        }

        public Criteria andConRemarkIsNotNull() {
            addCriterion("con_remark is not null");
            return (Criteria) this;
        }

        public Criteria andConRemarkEqualTo(String value) {
            addCriterion("con_remark =", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkNotEqualTo(String value) {
            addCriterion("con_remark <>", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkGreaterThan(String value) {
            addCriterion("con_remark >", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("con_remark >=", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkLessThan(String value) {
            addCriterion("con_remark <", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkLessThanOrEqualTo(String value) {
            addCriterion("con_remark <=", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkLike(String value) {
            addCriterion("con_remark like", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkNotLike(String value) {
            addCriterion("con_remark not like", value, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkIn(List<String> values) {
            addCriterion("con_remark in", values, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkNotIn(List<String> values) {
            addCriterion("con_remark not in", values, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkBetween(String value1, String value2) {
            addCriterion("con_remark between", value1, value2, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConRemarkNotBetween(String value1, String value2) {
            addCriterion("con_remark not between", value1, value2, "conRemark");
            return (Criteria) this;
        }

        public Criteria andConStatusIsNull() {
            addCriterion("con_status is null");
            return (Criteria) this;
        }

        public Criteria andConStatusIsNotNull() {
            addCriterion("con_status is not null");
            return (Criteria) this;
        }

        public Criteria andConStatusEqualTo(String value) {
            addCriterion("con_status =", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusNotEqualTo(String value) {
            addCriterion("con_status <>", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusGreaterThan(String value) {
            addCriterion("con_status >", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusGreaterThanOrEqualTo(String value) {
            addCriterion("con_status >=", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusLessThan(String value) {
            addCriterion("con_status <", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusLessThanOrEqualTo(String value) {
            addCriterion("con_status <=", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusLike(String value) {
            addCriterion("con_status like", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusNotLike(String value) {
            addCriterion("con_status not like", value, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusIn(List<String> values) {
            addCriterion("con_status in", values, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusNotIn(List<String> values) {
            addCriterion("con_status not in", values, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusBetween(String value1, String value2) {
            addCriterion("con_status between", value1, value2, "conStatus");
            return (Criteria) this;
        }

        public Criteria andConStatusNotBetween(String value1, String value2) {
            addCriterion("con_status not between", value1, value2, "conStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}